-
Notifications
You must be signed in to change notification settings - Fork 51
Fix: mdsconnect of IDL API now always updates !MDS_SOCKET #3009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: alpha
Are you sure you want to change the base?
Conversation
| return | ||
| end | ||
|
|
||
| ; This procedure is likely obsolete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This procedure is not used anywhere in the MDSplus source code. Plus it appears to be replaced by the mdsconnect procedure.
However, there is a chance that customers have old IDL programs that use this routine.
We should select one of these options:
- delete the procedure, or
- keep the procedure, or
- add a print statement to it indicating that it is deprecated and the user should instead use
mdsconnect
| end | ||
|
|
||
|
|
||
| ; This procedure is likely obsolete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete, keep or deprecate?
|
This draft PR will probably be cancelled after some additional investigation. For more information, refer to the post on Issue #2996. |
|
Adding an optional Even though this draft PR now passes the automated builds, it is debatable whether bug #2996 should be fixed or not. |
|
This draft PR and the original code both pass the unmodified automated test, which proves that they are functionally equivalent. However, any change to existing code brings with it the risk of unintended consequences; an innocuous change can inadvertently introduce a subtle bug. An alternate approach is to add comments to the original code explaining that the optional |
Fixes issue #2996.
The IDL API has a system variable (i.e., global),
!MDS_SOCKET, used to store the most recent connection ID. It is now updated whenevermdsconnectestablishes a mdsip connection.Example output follows . . .